<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script> 
</head>
<body>
    <div id=app>
        <form action="#">
            <table>
                <tr>
                    <td>姓名:</td>
                    <td><input type="text" v-model="userForm.name"></td>
                </tr>
                <tr>
                    <td>生日:</td>
                    <td><input type="text" v-model="userForm.birthday"></td>
                </tr>
            </table>
        </form>
        <div>
            <div>姓名:{{userForm.name}}</div>
            <div>生日:{{userForm.birthday}}</div>

        </div>
    </div>
</body>
</html>
<script>
    var vm=new Vue({
        el:'#app',
        data:{
            userForm:{
                name:"",
                birthday:""
            }
        }
    });
</script>
